<?php
/**
 * Created by PhpStorm.
 * User: ytl003
 * Date: 2018/9/27
 * Time: 上午12:05
 */

namespace app\api\service;


class Back
{
    public static function success($data='')
    {
        return [
            'code' => 0,
            'msg' => 'ok',
            'data' => $data
        ];
    }
    public static function error($msg='error',$data=''){
        return [
            'code' => 40003,
            'msg' => $msg,
            'data' => 'error'
        ];
    }
}